/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package genotypes;

import java.util.Comparator;

/**
 *
 * @author rusak
 */
public class AnglesComparator implements Comparator<Angles>{

    @Override
    public int compare(Angles a1, Angles a2) {
        return a1.getDistanceToDest() > a2.getDistanceToDest() ? 1 : 
                 (a1.getDistanceToDest() < a2.getDistanceToDest() ? -1 : 0);
    }
}
